package com.lxq.service;

import com.lxq.dao.PersonDao;
import com.lxq.model.Person;

import java.util.List;

public class PersonServiceImp implements PersonService {
    private PersonDao personDao;



    @Override
    public List<Person> search() {
        return  personDao.search();
    }

    @Override
    public void addPerson(Person person) {
        personDao.addPerson(person);
    }

    public PersonDao getPersonDao() {
        return personDao;
    }

    public void setPersonDao(PersonDao personDao) {
        this.personDao = personDao;
    }
}
